package com.woniu.userservice.controller;

import com.woniu.userservice.entity.Users;
import com.woniu.userservice.service.UsersService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("users")
public class UsersController {
    @Resource
    private UsersService usersService;

    @GetMapping("selectOne")
    public Users selectOne(Integer id) {
        return usersService.queryById(id);
    }

}